/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: mofan 1358526162@qq.com
 * @LastEditTime: 2023-05-18 14:05:59
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
import request from '@/utils/request'

// 用户登录, 用户名密码
export const loginIn = data => {
  return request({
    url: '/api/user/login',
    method: 'post',
    data,
  })
}
// 钉钉用户授权免密码登录
export const Login = params => {
  return request({
    url: '/api/user/dd-auth-login',
    method: 'get',
    params,
  })
}

// 获取登录用户信息
export const GetUserinfo = () => {
  return request({
    url: '/api/user/get-user-info',
    method: 'post',
  })
}

// 修改用户密码
export const ChangePwd = data => {
  return request({
    url: '/api/user/change-pwd',
    method: 'post',
    data,
  })
}
